import 'package:dmz/base/pageWidget/base_stateful_widget.dart';
import 'package:dmz/base/widget/defult_widget.dart';
import 'package:dmz/business/home/controller/set_moto_controller.dart';
import 'package:dmz/business/home/widgets/set_moto_widgets.dart';
import 'package:flutter/material.dart';

import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

class ChangeMotoName extends BaseStatefulWidget<SetMotoController> {
  @override
  String titleString() => '车辆设置'.tr;

  @override
  List<Widget>? appBarActionWidget(BuildContext context) {
    return [
      DefaultText('保存'.tr, 28.sp, textColor: Color(0xFF23C565))
          .paddingOnly(right: 32.sp)
          .addGestureDetector(controller.saveName)
    ];
  }

  @override
  bool delectControll() => false;

  @override
  Widget buildContent(BuildContext context) {
    return SetMotoWidgets.changeNameWidget();
  }
}
